﻿namespace EasyWeb.Configuration
{
    using System;

    [Serializable]
    public class EWFieldConfiguration
    {
        private Guid id;
        private Type type;
        private string designTemplate;

        public Guid Id
        {
            get { return this.id; }
            set { this.id = value; }
        }

        public Type Type
        {
            get { return this.type; }
            set
            {
                EWGuard.IsNotNull(value, "value");
                this.type = value;
            }
        }

        public string DesignTemplate
        {
            get { return this.designTemplate; }
            set
            {
                EWGuard.IsNotNullOrEmpty(value, "value");
                this.designTemplate = value;
            }
        }
    }
}
